package com.sgcc.ln.pmos.common.bean;

import android.text.TextUtils;

import com.blankj.utilcode.util.GsonUtils;

import java.util.List;

public class UserBean {

    private boolean ooxx;
    private boolean local;
    private String ticket;
    private String userId;
    private String userName;
    private String nickname;
    private String deptId;
    private String deptName;
    private String marketId;
    private String clientTag;
    private String innerUser;
    private String memberId;
    private String memberName;
    private String userIpAddress;
    private String mac;
    private String extend;
    private String userType;
    private String labelCode;
    private String labelName;
    private String energyHis;
    private List<String> telPhone;
    private Integer cfcaAuthorizeFlag;

    public List<String> getTelPhone() {
        return telPhone;
    }

    public Integer getCfcaAuthorizeFlag() {
        return  cfcaAuthorizeFlag;
    }

    public void setCfcaAuthorizeFlag(Integer cfcaAuthorizeFlag) {
        this.cfcaAuthorizeFlag = cfcaAuthorizeFlag;
    }

    public void setTelPhone(List<String> telPhone) {
        this.telPhone = telPhone;
    }

    public static class DataBean {

        private String appId;
        private String authType;
        private boolean cfcaLogin;
        private String clientType;
        private String deployMarket;
        private List<String> loginTypeList;
        private String membersType;
        private String roleCodes;
        private String safeType;
        private boolean status;
        private String ticket;
        private String userType;

        public String getAppId() {
            return appId;
        }

        public void setAppId(String appId) {
            this.appId = appId;
        }

        public String getAuthType() {
            return authType;
        }

        public void setAuthType(String authType) {
            this.authType = authType;
        }

        public boolean isCfcaLogin() {
            return cfcaLogin;
        }

        public void setCfcaLogin(boolean cfcaLogin) {
            this.cfcaLogin = cfcaLogin;
        }

        public String getClientType() {
            return clientType;
        }

        public void setClientType(String clientType) {
            this.clientType = clientType;
        }

        public String getDeployMarket() {
            return deployMarket;
        }

        public void setDeployMarket(String deployMarket) {
            this.deployMarket = deployMarket;
        }

        public List<String> getLoginTypeList() {
            return loginTypeList;
        }

        public void setLoginTypeList(List<String> loginTypeList) {
            this.loginTypeList = loginTypeList;
        }

        public String getMembersType() {
            return membersType;
        }

        public void setMembersType(String membersType) {
            this.membersType = membersType;
        }

        public String getRoleCodes() {
            return roleCodes;
        }

        public void setRoleCodes(String roleCodes) {
            this.roleCodes = roleCodes;
        }

        public String getSafeType() {
            return safeType;
        }

        public void setSafeType(String safeType) {
            this.safeType = safeType;
        }

        public boolean isStatus() {
            return status;
        }

        public void setStatus(boolean status) {
            this.status = status;
        }

        public String getTicket() {
            return ticket;
        }

        public void setTicket(String ticket) {
            this.ticket = ticket;
        }

        public String getUserType() {
            return userType;
        }

        public void setUserType(String userType) {
            this.userType = userType;
        }
    }

    public String getEnergyHis() {
        return energyHis;
    }

    public void setEnergyHis(String energyHis) {
        this.energyHis = energyHis;
    }

    public boolean isOoxx() {
        return ooxx;
    }

    public void setOoxx(boolean ooxx) {
        this.ooxx = ooxx;
    }

    public boolean isLocal() {
        return local;
    }

    public void setLocal(boolean local) {
        this.local = local;
    }

    public String getTicket() {
        return ticket;
    }

    public void setTicket(String ticket) {
        this.ticket = ticket;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getDeptId() {
        return deptId;
    }

    public void setDeptId(String deptId) {
        this.deptId = deptId;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getMarketId() {
        return marketId;
    }

    public void setMarketId(String marketId) {
        this.marketId = marketId;
    }

    public String getClientTag() {
        return clientTag;
    }

    public void setClientTag(String clientTag) {
        this.clientTag = clientTag;
    }

    public String getInnerUser() {
        return innerUser;
    }

    public void setInnerUser(String innerUser) {
        this.innerUser = innerUser;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getUserIpAddress() {
        return userIpAddress;
    }

    public void setUserIpAddress(String userIpAddress) {
        this.userIpAddress = userIpAddress;
    }

    public String getMac() {
        return mac;
    }

    public void setMac(String mac) {
        this.mac = mac;
    }

    public DataBean getExtend() {
        if (TextUtils.isEmpty(extend)) {
            return null;
        } else
            return GsonUtils.fromJson(extend, DataBean.class);
    }

    public void setExtend(String extend) {
        this.extend = extend;
    }

    public String getUserType() {
        return userType;
    }

    public void setUserType(String userType) {
        this.userType = userType;
    }

    public String getLabelCode() {
        return labelCode;
    }

    public void setLabelCode(String labelCode) {
        this.labelCode = labelCode;
    }

    public String getLabelName() {
        return labelName;
    }

    public void setLabelName(String labelName) {
        this.labelName = labelName;
    }
}
